<!DOCTYPE html>
<html lang="en" xmlns:th="http://www.thymeleaf.org">
<head>
    <meta charset="UTF-8">
    <title>成易博客-登陆</title>
    <link rel="stylesheet" th:href="@{/static/css/cinui.css}"/>
    <link rel="stylesheet" th:href="@{/static/layui-v2.6.8/layui/css/layui.css}" media="all">
    <meta http-equiv="X-UA-Compatible" content="IE=edge,chrome=1">
    <meta name="viewport" content="width=device-width, initial-scale=1, maximum-scale=1">
    <script th:src="@{/static/layui-v2.6.8/layui/layui.js}" charset="utf-8"></script>
    <script th:src="@{/static/js/jquery-3.6.js}"></script>
    <!--  图标库  -->
    <link th:href="@{/static/font-awesome-4.7.0/css/font-awesome.min.css}" rel="stylesheet">
    <!--  vue  -->
    <script src="https://cdn.jsdelivr.net/npm/vue@2.6.14/dist/vue.min.js"></script>
    <!-- 引入element样式 -->
    <link rel="stylesheet" href="https://unpkg.com/element-ui/lib/theme-chalk/index.css">
    <!-- 引入element组件库 -->
    <script src="https://unpkg.com/element-ui/lib/index.js"></script>
    <style>
        .bg-purple {
            background: #4a6b95;
        }
        .bg-purple-light {
            background: #86aafc;
        }
    </style>
</head>
<body style="background: rgb(246,248,244)">
<div id="app">
    <el-container style="height: 500px; border: 1px solid #eee">
        <!--       左侧菜单导航     -->
        <el-aside width="200px" style="background-color: rgb(238, 241, 246)">
            <el-menu :default-openeds="['1', '3']">
                <el-submenu index="1">
                    <template slot="title"><i class="el-icon-message"></i>导航一</template>
                    <el-menu-item-group>
                        <template slot="title">分组一</template>
                        <el-menu-item index="1-1">选项1</el-menu-item>
                        <el-menu-item index="1-2">选项2</el-menu-item>
                    </el-menu-item-group>
                    <el-menu-item-group title="分组2">
                        <el-menu-item index="1-3">选项3</el-menu-item>
                    </el-menu-item-group>
                    <el-submenu index="1-4">
                        <template slot="title">选项4</template>
                        <el-menu-item index="1-4-1">选项4-1</el-menu-item>
                    </el-submenu>
                </el-submenu>
                <el-submenu index="2">
                    <template slot="title"><i class="el-icon-menu"></i>导航二</template>
                    <el-menu-item-group>
                        <template slot="title">分组一</template>
                        <el-menu-item index="2-1">选项1</el-menu-item>
                        <el-menu-item index="2-2">选项2</el-menu-item>
                    </el-menu-item-group>
                    <el-menu-item-group title="分组2">
                        <el-menu-item index="2-3">选项3</el-menu-item>
                    </el-menu-item-group>
                    <el-submenu index="2-4">
                        <template slot="title">选项4</template>
                        <el-menu-item index="2-4-1">选项4-1</el-menu-item>
                    </el-submenu>
                </el-submenu>
                <el-submenu index="3">
                    <template slot="title"><i class="el-icon-setting"></i>导航三</template>
                    <el-menu-item-group>
                        <template slot="title">分组一</template>
                        <el-menu-item index="3-1">选项1</el-menu-item>
                        <el-menu-item index="3-2">选项2</el-menu-item>
                    </el-menu-item-group>
                    <el-menu-item-group title="分组2">
                        <el-menu-item index="3-3">选项3</el-menu-item>
                    </el-menu-item-group>
                    <el-submenu index="3-4">
                        <template slot="title">选项4</template>
                        <el-menu-item index="3-4-1">选项4-1</el-menu-item>
                    </el-submenu>
                </el-submenu>
            </el-menu>
        </el-aside>


        <el-container>
            <!--       头部导航     -->
            <el-header style="text-align: right; font-size: 12px">
                <el-dropdown>
                    <i class="el-icon-setting" style="margin-right: 15px"></i>
                    <el-dropdown-menu slot="dropdown">
                        <el-dropdown-item>查看</el-dropdown-item>
                        <el-dropdown-item>新增</el-dropdown-item>
                        <el-dropdown-item>删除</el-dropdown-item>
                    </el-dropdown-menu>
                </el-dropdown>
                <span>王小虎</span>
            </el-header>

            <!--       main 主内容区域     -->
            <el-main>
                <el-table :data="tableData">
                    <el-table-column prop="date" label="日期" width="140">
                    </el-table-column>
                    <el-table-column prop="name" label="姓名" width="120">
                    </el-table-column>
                    <el-table-column prop="address" label="地址">
                    </el-table-column>
                </el-table>
            </el-main>

            <!--       底部导航     -->
            <el-footer class="el-footer">
                2021&nbsp;©&nbsp;成易博客
            </el-footer>

        </el-container>


    </el-container>



</div>

<style>
    .el-header {
        background-color: #B3C0D1;
        color: #333;
        line-height: 60px;
    }

    .el-aside {
        color: #333;
    }

    .el-footer {
        background-color: #8b9aa5;
        color: #333;
        line-height: 60px;
        width: 100%;
    }
</style>

<script>
    var Main = {
        data() {
            const item = {
                date: '2016-05-02',
                name: '王小虎',
                address: '上海市普陀区金沙江路 1518 弄'
            };
            return {
                tableData: Array(20).fill(item)
            }
        }
    };
    var Ctor = Vue.extend(Main)
    new Ctor().$mount('#app')
</script>
<!--<script>-->
<!--    var submit = document.getElementById("submit");//获取注册按钮的id-->
<!--    //验证码发送-->
<!--    function getCode() {-->
<!--        $.post({-->
<!--            url: "getCode",-->
<!--            data: {"phone": $('#phone').val()},-->
<!--            async: true,-->
<!--            success: function (data) {-->
<!--                $('#info2').html(data);//获取后台数据绑定到 div上-->
<!--                var Code = document.getElementById("Code");//获取注册按钮的id-->
<!--                if (data.toString() === '发送成功') {//如果验证码发送成功，则将按钮设置为不可点击-->
<!--                    Code.setAttribute('class', 'layui-btn layui-btn-primary submitStyleButton layui-col-lg12 layui-col-md12 layui-col-sm12 layui-col-xs12');-->
<!--                } else {-->
<!--                    Code.setAttribute('class', 'layui-btn layui-btn-normal layui-col-lg12 layui-col-md12 layui-col-sm12 layui-col-xs12');-->
<!--                }-->
<!--            }-->
<!--        })-->
<!--    }-->

<!--    //验证码验证-->
<!--    function codeStatus() {-->
<!--        $.post({-->
<!--            url: "codeStatus",-->
<!--            data: {"SmsCode": $('#SmsCode').val()},-->
<!--            async: true,-->
<!--            success: function (data) {-->
<!--                $('#info3').html(data);//获取后台数据绑定到 div-->
<!--                var codeStatus = document.getElementById("SmsCode");-->
<!--                if (data.toString() === '验证码错误') {//验证码错误不允许注册-->
<!--                    submit.setAttribute('class', 'layui-btn layui-btn-primary submitStyleButton layui-col-lg12 layui-col-md12 layui-col-sm12 layui-col-xs12');-->
<!--                } else {-->
<!--                    submit.setAttribute('class', 'layui-btn layui-btn-normal layui-col-lg12 layui-col-md12 layui-col-sm12 layui-col-xs12');-->
<!--                }-->
<!--            }-->
<!--        })-->
<!--    }-->
<!--</script>-->

</body>
</html>